import java.io.File;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class TestThreadPool {
    public static void main(String[] args) {
        ExecutorService cachedThreadPool = Executors.newCachedThreadPool();
        for (int i = 0; i < 10; i++) {
            final int index = i;
            try {
                Thread.sleep(index * 1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            cachedThreadPool.execute(()-> System.out.println("aaa"));
            cachedThreadPool.execute(()-> {
                System.out.println("aaa");
            });
        }
        File f = new File("");
        String absolutePath = f.getAbsolutePath();
        System.out.println(f.getPath());
        System.out.println(absolutePath);
    }
}
